<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<div class="t_bar"><span class="color_red">*</span>产业创新研究院基本情况</div>
<table class="t_css" width="100%" id="table_01">
    <col style="width: 20%;" />
    <col style="width: 30%;" />
    <col style="width: 20%;" />
    <col style="width: 30%;" />

    <tr>
        <td align="right">拟建产业创新研究院名称：</td>
        <td>
            <input type='text' name='proposal/zh_title' id='zh_title' style="width: 92%"
                   class="input_css required" maxlength="50"
                   value='<x:out select="$xmlData/data/proposal/zh_title"/>' label="拟建产业创新研究院名称">
        </td>
        <td align="right">产业领域：</td>
        <td>
            <input type="text" label="产业领域" name="proposal/field_or_subject"
                   class="input_css required" maxlength="50" style="width: 92%"
                   value="<x:out select="$xmlData/data/proposal/field_or_subject" />">
            <br/><span style="color: #FF0000">（按照榜单里面的产业领域填写）</span>
        </td>
    </tr>
    <tr>
        <td align="right">牵头单位名称：</td>
        <td>
            <x:out select="$xmlData/data/organizations/organization/org_name" />
        </td>
        <td align="right">单位类型：</td>
        <td>
            <c:set var="unit_nature_new2_value">
                <x:out select="$xmlData/data/proposal/unit_nature_new2_value" />
            </c:set>
            <cpt:checkbox key="unit_nature_new2" name="unit_nature_new2" repeatColumn="3" value="${unit_nature_new2_value }" onClick="setTopicSuorce();" tagType="radio"></cpt:checkbox>
            <input type="hidden" id="unit_nature_new2_value" name="proposal/unit_nature_new2_value" class="required" value="${unit_nature_new2_value}" label="单位类型 ">
            <input type="hidden" name="proposal/unit_nature_new2_name" value="<x:out select="$xmlData/data/proposal/unit_nature_new2_name" />">
        </td>
    </tr>

    <tr>
        <td align="right">牵头单位联系人：</td>
        <td>
            <input type='text' name='proposal/dw_lxr' id='dw_lxr' style="width: 92%"
                   class="input_css required" maxlength="50"
                   value='<x:out select="$xmlData/data/proposal/dw_lxr"/>' label="牵头单位联系人">
        </td>
        <td align="right" >联系电话：</td>
        <td>
            <input type='text' name='proposal/lxr_tel' id='lxr_tel' style="width: 92%"
                   class="input_css required" maxlength="50"
                   value='<x:out select="$xmlData/data/proposal/lxr_tel"/>' label="联系电话">
        </td>
    </tr>
    <tr>
        <td align="right">组建类别：</td>
        <td>
            <label><input type="radio" id="category_category1" name="category_category" value="01" class="do"  label="产业创新类"  />产业创新类</label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <label><input type="radio" id="category_category2" name="category_category" value="02" class="do"  label="研发转化类"  />研发转化类</label>
            <input type="hidden" name="proposal/category_category_value" id="category_category_value" class="required" value="<x:out select="$xmlData/data/proposal/category_category_value" />" label="组建类别" />
            <input type="hidden" name="proposal/category_category_name" id="category_category_name" value="<x:out select="$xmlData/data/proposal/category_category_name" />" label="组建类别" /></td>
        <td align="right">归口管理部门：</td>
        <td>
            <c:set var="recomend_org">
                {'id':'<x:out select="$xmlData/data/proposal/recomend_org_value" />',
                'name':'<x:out select="$xmlData/data/proposal/recomend_org_name" />'
                }
            </c:set> <cpt:tree id="recomend_org" key="recommended_org" cacheable="false" className="hn_iuput_kuang required selectWidth3" readonly="true"  value="${recomend_org}" label="归口管理部门"
                               showPattern="all" shieldPattern="0" onClick="initTreeValueExt">
        </cpt:tree>
            <input type="hidden" id="recomend_org_value" name="proposal/recomend_org_value"  value="<x:out select="$xmlData/data/proposal/recomend_org_value" />" >
            <input type="hidden" name="proposal/recomend_org_name" value="<x:out select="$xmlData/data/proposal/recomend_org_name" />">
            <br/><br/><span style="color: #FF0000">（只能选择所在地市级科技管理部门）</span>
        </td>
    </tr>
    <tr>
        <td align="right" >所揭“榜单”：</td>
        <td colspan="3">
            <input type='text' name='proposal/sjbd' id='sjbd' style="width: 92%"
                   class="input_css required" maxlength="100"
                   value='<x:out select="$xmlData/data/proposal/sjbd"/>' label="所揭“榜单”">
        </td>
    </tr>
    <tr>
        <td align="right">项目起止时间：</td>
        <td colspan="3" align="">
            <span name="proposal/start_date">${param.pro_start_date}</span>&nbsp;&nbsp;&nbsp; 至 &nbsp;&nbsp;&nbsp;<span name="proposal/end_date">${param.pro_end_date}</span>
        </td>
    </tr>
</table>
<div class="t_bar"><span class="color_red">*</span>人员信息</div>
<table class="t_css" width="100%" id="table_02">
    <col style="width: 20%;" />
    <col style="width: 15%;" />
    <col style="width: 25%;" />
    <col style="width: 15%;" />
    <col style="width: 25%;" />
    <tr>
        <td rowspan="3" align="right">产研院主要负责人：</td>
        <td align="right">姓名：</td>
        <td>
            <input type='text' name='personnel/cyy_name' id='cyy_name' style="width: 92%"
                   class="input_css required" maxlength="50"
                   value='<x:out select="$xmlData/data/personnel/cyy_name"/>' label="产研院主要负责人-->姓名">
        </td>
        <td align="right">出生日期：</td>
        <td>
            <c:set var="birthday_date">
                <x:out select="$xmlData/data/personnel/birthday_date" />
            </c:set>
            <cpt:date id="birthday_date" name="personnel/birthday_date" value="${birthday_date}"
                      className="required date beforeToday" label="产研院主要负责人-->出生日期"></cpt:date>
        </td>
    </tr>
    <tr>
        <td align="right">职称：</td>
        <td>
            <input type='text' name='personnel/cyy_zc' id='cyy_zc' style="width: 92%"
                   class="input_css required" maxlength="50"
                   value='<x:out select="$xmlData/data/personnel/cyy_zc"/>' label="产研院主要负责人-->职称">
        </td>
        <td align="right">职务：</td>
        <td>
            <input type='text' name='personnel/cyy_zw' id='cyy_zw' style="width: 92%"
                   class="input_css required" maxlength="50"
                   value='<x:out select="$xmlData/data/personnel/cyy_zw"/>' label="产研院主要负责人-->职务">
        </td>
    </tr>

    <tr>
        <td align="right">专业专长：</td>
        <td>
            <input type='text' name='personnel/cyy_zyzc' id='cyy_zyzc' style="width: 92%"
                   class="input_css required" maxlength="50"
                   value='<x:out select="$xmlData/data/personnel/cyy_zyzc"/>' label="产研院主要负责人-->专业专长">
        </td>
        <td align="right" >手机：</td>
        <td>
            <input type='text' name='personnel/cyy_tel' id='cyy_tel' style="width: 92%"
                   class="input_css required mobile"
                   onfocus="InitInput.setNumber(this,11,0,0)"
                   value='<x:out select="$xmlData/data/personnel/cyy_tel"/>' label="产研院主要负责人-->手机">
        </td>
    </tr>
    <tr>
        <td align="right">联系人：</td>
        <td align="right">姓名：</td>
        <td>
            <span name="proposal/fzr_name"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name"/></span>
        </td>
        <td align="right" >手机：</td>
        <td>
            <span name="proposal/fzr_tel"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile"/></span>
        </td>
    </tr>
</table>
<div class="t_bar"><span class="color_red">*</span>基础条件</div>
<table class="t_css" width="100%" id="table_03">
    <col width="16%">
    <col width="16%">
    <col width="16%">
    <col width="25%">
    <col width="27%">
    <tr>
        <td align="right" >研发场所面积（㎡）：</td>
        <td colspan="2">
                <input type='text' name='basics/jc_area' id='jc_area' style="width: 92%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,4,2)"
                   value='<x:out select="$xmlData/data/basics/jc_area"/>' label="研发场所面积">
        </td>
        <td align="right">研发所用仪器设备原值（万元）：</td>
        <td>
            <input type='text' name='basics/jc_facility' id='jc_facility' style="width: 92%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,4,2)"
                   value='<x:out select="$xmlData/data/basics/jc_facility"/>' label="研发所用仪器设备原值">
        </td>
    </tr>
    <tr align="center">
        <td>固定人员总数</td>
        <td>其中，科研人员数</td>
        <td>其中，成果转化人员数</td>
        <td>科研和成果转化人员总数</td>
        <td>科研和成果转化人员占固定人员比例（%）</td>
    </tr>
    <tr align="center">
        <td>
            <input type='text' name='basics/jc_immobilization_people' id='jc_immobilization_people' style="width: 92%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,0,0)"
<%--                   onchange="countkc()";--%>
                   value='<x:out select="$xmlData/data/basics/jc_immobilization_people"/>' label="固定人员总数">
        </td>
        <td>
            <input type='text' name='basics/jc_researcher' id='jc_researcher' style="width: 92%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,0,0)"
<%--                   onchange="countkc()";--%>
                   value='<x:out select="$xmlData/data/basics/jc_researcher"/>' label="其中，科研人员数">
        </td>
        <td>
            <input type='text' name='basics/jc_achievement' id='jc_achievement' style="width: 92%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,0,0)"
<%--                   onchange="countkc()";--%>
                   value='<x:out select="$xmlData/data/basics/jc_achievement"/>' label="其中，成果转化人员数">
        </td>
        <td>
            <input type='text' name='basics/jc_people_sum' id='jc_people_sum' style="width: 92%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,11,0,0)"
                   value='<x:out select="$xmlData/data/basics/jc_people_sum"/>' label="科研和成果转化人员总数">
        </td>
        <td>
            <input type='text' name='basics/jc_proportion' id='jc_proportion' style="width: 92%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,11,4,2)"
                   value='<x:out select="$xmlData/data/basics/jc_proportion"/>' label="科研和成果转化人员占固定人员比例">
        </td>
    </tr>
</table>
<div class="t_bar"><span class="color_red">*</span>研发投入</div>
<table class="t_css" width="100%" id="table_04">
    <col width="25%">
    <col width="25%">
    <col width="25%">
    <col width="25%">
    <tr align="center">
        <td>年份</td>
        <td>研发投入（万元）</td>
        <td>总收入（万元）</td>
        <td>研发投入占比（%）</td>
    </tr>
    <tr align="center">
        <td>${statYear-3}年</td>
        <td>
            <input type='text' name='develop/yf_input1' id='yf_input1' style="width: 92%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,4,2)"
                   value='<x:out select="$xmlData/data/develop/yf_input1"/>' label="${statYear-3}年-->研发投入">
        </td>
        <td>
            <input type='text' name='develop/yf_income1' id='yf_income1' style="width: 92%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,4,2)"
                   value='<x:out select="$xmlData/data/develop/yf_income1"/>' label="${statYear-3}年-->总收入">
        </td>
        <td>
            <input type='text' name='develop/yf_proportion1' id='yf_proportion1' style="width: 92%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,4,2)"
                   value='<x:out select="$xmlData/data/develop/yf_proportion1"/>' label="${statYear-3}年-->研发投入占比">
        </td>
    </tr>
    <tr align="center">
        <td>${statYear-2}年</td>
        <td>
            <input type='text' name='develop/yf_input2' id='yf_input2' style="width: 92%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,4,2)"
                   value='<x:out select="$xmlData/data/develop/yf_input2"/>' label="${statYear-2}年-->研发投入">
        </td>
        <td>
            <input type='text' name='develop/yf_income2' id='yf_income2' style="width: 92%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,4,2)"
                   value='<x:out select="$xmlData/data/develop/yf_income2"/>' label="${statYear-2}年-->总收入">
        </td>
        <td>
            <input type='text' name='develop/yf_proportion2' id='yf_proportion2' style="width: 92%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,4,2)"
                   value='<x:out select="$xmlData/data/develop/yf_proportion2"/>' label="${statYear-2}年-->研发投入占比">
        </td>
    </tr>
    <tr align="center">
        <td>${statYear-1}年</td>
        <td>
            <input type='text' name='develop/yf_input3' id='yf_input3' style="width: 92%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,4,2)"
                   value='<x:out select="$xmlData/data/develop/yf_input3"/>' label="${statYear-1}年-->研发投入">
        </td>
        <td>
            <input type='text' name='develop/yf_income3' id='yf_income3' style="width: 92%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,4,2)"
                   value='<x:out select="$xmlData/data/develop/yf_income3"/>' label="${statYear-1}年-->总收入">
        </td>
        <td>
            <input type='text' name='develop/yf_proportion3' id='yf_proportion3' style="width: 92%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,4,2)"
                   value='<x:out select="$xmlData/data/develop/yf_proportion3"/>' label="${statYear-1}年-->研发投入占比">
        </td>
    </tr>
</table>
<div class="t_bar"><span class="color_red">*</span>近三年创新能力</div>
<table class="t_css" width="100%" id="table_05">
    <col width="20%">
    <col width="8%">
    <col width="8%">
    <col width="8%">
    <col width="8%">
    <col width="8%">
    <col width="8%">
    <col width="8%">
    <col width="8%">
    <col width="8%">
    <col width="8%">
    <tr align="center">
        <td rowspan="3">获奖（项）</td>
        <td colspan="4">国家级科技奖</td>
        <td colspan="6">省级科技奖</td>
    </tr>
    <tr align="center">
        <td colspan="2">一等</td>
        <td colspan="2">二等</td>
        <td colspan="2">一等</td>
        <td colspan="2">二等</td>
        <td colspan="2">三等</td>
    </tr>
    <tr align="center">
      <td colspan="2">
          <input type='text' name='innovate/cx_nation_one' id='cx_nation_one' style="width: 92%;text-align: right"
                 class="input_css required " onfocus="InitInput.setNumber(this,9,0,0)"
                 value='<x:out select="$xmlData/data/innovate/cx_nation_one"/>' label="获奖-->国家级科技奖-->一等">
      </td>
      <td colspan="2">
          <input type='text' name='innovate/cx_nation_two' id='cx_nation_two' style="width: 92%;text-align: right"
                 class="input_css required " onfocus="InitInput.setNumber(this,9,0,0)"
                 value='<x:out select="$xmlData/data/innovate/cx_nation_two"/>' label="获奖-->国家级科技奖-->二等">
      </td>
      <td colspan="2">
          <input type='text' name='innovate/cx_province_one' id='cx_province_one' style="width: 92%;text-align: right"
                 class="input_css required " onfocus="InitInput.setNumber(this,9,0,0)"
                 value='<x:out select="$xmlData/data/innovate/cx_province_one"/>' label="获奖-->省级科技奖-->一等">
      </td>
      <td colspan="2">
          <input type='text' name='innovate/cx_province_two' id='cx_province_two' style="width: 92%;text-align: right"
                 class="input_css required " onfocus="InitInput.setNumber(this,9,0,0)"
                 value='<x:out select="$xmlData/data/innovate/cx_province_two"/>' label="获奖-->省级科技奖-->二等">
      </td>
      <td colspan="2">
          <input type='text' name='innovate/cx_province_three' id='cx_province_three' style="width: 92%;text-align: right"
                 class="input_css required " onfocus="InitInput.setNumber(this,9,0,0)"
                 value='<x:out select="$xmlData/data/innovate/cx_province_three"/>' label="获奖-->省级科技奖-->三等">
      </td>
    </tr>
    <tr align="center">
        <td rowspan="2">承担重大科技项目（项）</td>
        <td colspan="5">国家级</td>
        <td colspan="5">省级</td>
    </tr>
    <tr>
        <td colspan="5">
            <input type='text' name='innovate/cx_nation_great' id='cx_nation_great' style="width: 97%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,0,0)"
                   value='<x:out select="$xmlData/data/innovate/cx_nation_great"/>' label="承担重大科技项目-->国家级">
        </td>
        <td colspan="5">
            <input type='text' name='innovate/cx_province_great' id='cx_province_great' style="width: 97%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,0,0)"
                   value='<x:out select="$xmlData/data/innovate/cx_province_great"/>' label="承担重大科技项目-->省级">
        </td>
    </tr>
    <tr align="center">
        <td rowspan="2">论文（篇）</td>
        <td colspan="3">SCI</td>
        <td colspan="3">EI</td>
        <td colspan="4">核心</td>
    </tr>
    <tr align="center">
        <td colspan="3">
            <input type='text' name='innovate/cx_thesis_sci' id='cx_thesis_sci' style="width: 92%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,0,0)"
                   value='<x:out select="$xmlData/data/innovate/cx_thesis_sci"/>' label="论文-->SCI">
        </td>
        <td colspan="3">
            <input type='text' name='innovate/cx_thesis_ei' id='cx_thesis_ei' style="width: 92%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,0,0)"
                   value='<x:out select="$xmlData/data/innovate/cx_thesis_ei"/>' label="论文-->EI">
        </td>
        <td colspan="4">
            <input type='text' name='innovate/cx_thesis_centre' id='cx_thesis_centre' style="width: 96%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,0,0)"
                   value='<x:out select="$xmlData/data/innovate/cx_thesis_centre"/>' label="论文-->核心">
        </td>
    </tr>
    <tr align="center">
        <td rowspan="2">发明专利（件）</td>
        <td colspan="5">申报</td>
        <td colspan="5">授权</td>
    </tr>
    <tr align="center">
        <td colspan="5">
            <input type='text' name='innovate/cx_invent_declare' id='cx_invent_declare' style="width: 97%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,0,0)"
                   value='<x:out select="$xmlData/data/innovate/cx_invent_declare"/>' label="发明专利-->申报">
        </td>
        <td colspan="5">
            <input type='text' name='innovate/cx_invent_authorization' id='cx_invent_authorization' style="width: 97%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,0,0)"
                   value='<x:out select="$xmlData/data/innovate/cx_invent_authorization"/>' label="发明专利-->授权">
        </td>
    </tr>
    <tr align="center">
        <td>专著（部）</td>
        <td colspan="10" align="left">
            <input type='text' name='innovate/cx_treatise' id='cx_treatise' style="width: 27%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,0,0)"
                   value='<x:out select="$xmlData/data/innovate/cx_treatise"/>' label="专著">
        </td>
    </tr>
    <tr align="center">
        <td rowspan="2">主持（参与）制定标准（项）</td>
        <td colspan="2">国际</td>
        <td colspan="2">国家</td>
        <td colspan="2">行业</td>
        <td colspan="2">地方</td>
        <td colspan="2">企业</td>
    </tr>
    <tr align="center">
        <td colspan="2">
            <input type='text' name='innovate/cx_standard_international' id='cx_standard_international' style="width: 92%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,0,0)"
                   value='<x:out select="$xmlData/data/innovate/cx_standard_international"/>' label="主持（参与）制定标准-->国际">
        </td>
        <td colspan="2">
            <input type='text' name='innovate/cx_standard_nation' id='cx_standard_nation' style="width: 92%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,0,0)"
                   value='<x:out select="$xmlData/data/innovate/cx_standard_nation"/>' label="主持（参与）制定标准-->国家">
        </td>
        <td colspan="2">
            <input type='text' name='innovate/cx_standard_industry' id='cx_standard_industry' style="width: 92%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,0,0)"
                   value='<x:out select="$xmlData/data/innovate/cx_standard_industry"/>' label="主持（参与）制定标准-->行业">
        </td>
        <td colspan="2">
            <input type='text' name='innovate/cx_standard_place' id='cx_standard_place' style="width: 92%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,0,0)"
                   value='<x:out select="$xmlData/data/innovate/cx_standard_place"/>' label="主持（参与）制定标准-->地方">
        </td>
        <td colspan="2">
            <input type='text' name='innovate/cx_standard_enterprise' id='cx_standard_enterprise' style="width: 92%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,0,0)"
                   value='<x:out select="$xmlData/data/innovate/cx_standard_enterprise"/>' label="主持（参与）制定标准-->企业">
        </td>
    </tr>

    <tr align="center">
        <td>技术转让（项）</td>
        <td colspan="4">
            <input type='text' name='innovate/cx_technology' id='cx_technology' style="width: 92%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,0,0)"
                   value='<x:out select="$xmlData/data/innovate/cx_technology"/>' label="技术转让">
        </td>
        <td colspan="2">技术转让收益（万元）</td>
        <td colspan="4">
            <input type='text' name='innovate/cx_technology_income' id='cx_technology_income' style="width: 96%;text-align: right"
                   class="input_css required " onfocus="InitInput.setNumber(this,9,4,2)"
                   value='<x:out select="$xmlData/data/innovate/cx_technology_income"/>' label="技术转让收益">
        </td>
    </tr>


</table>
<div class="t_bar"><span class="color_red">*</span>主要研究方向（限300字）</div>
<table id="study_direction" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="word-wrap:break-word;word-break:break-all;">
    <tr>
        <td colspan="6">
            <textarea name="performances/summary" rows=7 style="width: 97%;"  label="主要研究方向"  class="input_textarea required maxlength:300"><x:out select="$xmlData/data/performances/summary" /></textarea>
            <input type="hidden" name="performances/summary_hidden" id="performances/summary_hidden" value="<x:out select="$xmlData/data/performances/summary_hidden" />"/>
        </td>
    </tr>
</table>
<div class="t_bar"><span class="color_red">*</span>共建单位信息</div>
<table  id="jointly_unit" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;table-layout: fixed;" >
    <col width="6%" />
    <col width="6%" />
    <col width="32%" />
    <col width="12%" />
    <col width="22%" />
    <col width="22%" />
    <thead >
    <tr style="border:1px solid #B7D1E6">
        <th class="TblHead" align="center" >选择</th>
        <th class="TblHead" align="center" >序号</th>
        <th class="TblHead" align="center" >单位名称</th>
        <th class="TblHead" align="center" >单位类型</th>
        <th class="TblHead" align="center" >联系人</th>
        <th class="TblHead" align="center" >联系电话</th>
    </tr>
    </thead>
    <tbody id="tab">
    <tr style="display:none" align="center">
        <td align="center">
            <input type="radio" class="radiobutton" name="jointly_unit" >
        </td>
        <td align="center">
            <span name="jointly_unit|list[0]@seq_no" >[index]</span>
        </td>
        <td align="center">
            <input type="text" name="jointly_unit|list[0]|content" label="单位名称" class=" required input_text " maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <cpt:select id="unit_type[index]" key="unit_nature_new2"  name="unit_type" onChange="initControlValue(this.id);" style="width:80%"></cpt:select>
            <input type="hidden" name="jointly_unit|list[0]|unit_type_value" class="required" label="单位类型" />
            <input type="hidden" name="jointly_unit|list[0]|unit_type_name" value=""/>
        </td>
        <td align="center">
            <input type="text" name="jointly_unit|list[0]|lxr" label="联系人" class=" required input_text " maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="jointly_unit|list[0]|lx_tel" label="联系电话" class=" required input_text " maxlength="50" style="width:80%"/>
        </td>
    </tr>

    <c:set value="0" var="index" scope="page"/>
    <x:forEach select="$xmlData/data/jointly_unit/list" var="list">

        <c:choose>
            <c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
            <c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
        </c:choose>
        <tr align="center">
            <td align="center">
                <input type="radio" class="radiobutton" name="jointly_unit" >
            </td>
            <td align="center">
                <span name="jointly_unit/list[${flag}${index}]@seq_no" ><x:out select="$list/@seq_no"/></span>
            </td>
            <td align="center">
                <input type="text" name="jointly_unit/list[${flag}${index}]/content"  value="<x:out select="$list/content"/>"   label="单位名称" class=" required input_text " maxlength="50" style="width:80%"/>
            </td>
            <td>
                <c:set var="unit_type_value"><x:out select="$list/unit_type_value" /></c:set>
                <cpt:select id="unit_type${index}" key="unit_nature_new2" name="unit_type"  value="${unit_type_value }" onChange="initControlValue(this.id);" style="width:80%"></cpt:select>
                <input type="hidden" name="jointly_unit/list[${flag}${index}]/unit_type_value" class="required" label="单位类型" value="<x:out select="$list/unit_type_value" />"/>
                <input type="hidden" name="jointly_unit/list[${flag}${index}]/unit_type_name" value="<x:out select="$list/unit_type_name" />"/>
            </td>
            <td align="center">
                <input type="text" name="jointly_unit/list[${flag}${index}]/lxr"  value="<x:out select="$list/lxr"/>"   label="联系人" class=" required input_text " maxlength="50" style="width:80%"/>
            </td>
            <td align="center">
                <input type="text" name="jointly_unit/list[${flag}${index}]/lx_tel"  value="<x:out select="$list/lx_tel"/>"   label="联系电话" class=" required input_text " maxlength="50" style="width:80%"/>
            </td>
        </tr>
        <c:set value="${index+1}" var="index" scope="page"/>
    </x:forEach>
    <script type="text/javascript">
        showAllDateTag("jointly_unit");
    </script>
    </tbody>
</table>
<table width="98%" align="center" border="0">
    <tr style="border: 0"><td style="border: 0">
        <input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('jointly_unit',10,'共建单位信息最多只能添加10条')){addNewRow('jointly_unit');showDateTag('jointly_unit');try{top.resizeFrame();}catch(e){};}">
        <input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev3('jointly_unit','jointly_unit')">
        <input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext3('jointly_unit','jointly_unit')">
        <input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow3('jointly_unit','共建单位信息');">
    </td></tr>
</table>




<script type="text/javascript">

    /**
     * 上移行
     * @param tblId
     * @returns {Boolean}
     */
    function movePrev3(tblId,selName) {
        if (!selName)
            selName = "";
        if ($("#" + tblId + " :radio[name*='" + selName + "']:checked").length == 0) {
            scmWarn(irisNotes.prevWarn);
            return false;
        }
        if ($("#" + tblId + " tr").length <= 2)
            return false;
        var trChecked = $("#" + tblId + " :radio[name*='" + selName + "']:checked")
            .parents("tr").first();// 取得被选中的行
        var trPrev = trChecked.prev();// 取得上一行
        var index = trChecked.get(0).rowIndex;// 获得行号
        if (index <= 2) {// 如果是第一行
            scmWarn(irisNotes.tabelMoveWarn1);
            return false;
        }
        //trChecked.remove();
        trPrev.before(trChecked);
        trChecked.find(":radio[name*='" + selName + "']").attr("checked", 'true');
        refreshRowINdex33(tblId);
    }

    /**
     * 下移行
     * @param tblId
     * @returns {Boolean}
     */
    function moveNext3(tblId,selName) {
        if (!selName)
            selName = "";
        if ($("#" + tblId + " :radio[name*='" + selName + "']:checked").length == 0) {
            scmWarn(irisNotes.nextWarn);
            return false;
        }
        if ($("#" + tblId + " tr").length <= 2) {
            return false;
        }
        var trChecked = $("#" + tblId + " :radio[name*='" + selName + "']:checked")
            .parents("tr").first();// 取得被选中的行
        var trNext = trChecked.next();
        var index = trChecked.get(0).rowIndex;// 获得行号
        if (index == $("#" + tblId + " tr").length - 1) {// 如果是第一行
            scmWarn(irisNotes.tabelMoveWarn2);
            return false;
        }
        //trChecked.remove();
        trNext.after(trChecked);
        trChecked.find(":radio[name*='" + selName + "']").attr("checked", "true");
        refreshRowINdex33(tblId);
    }

    /**
     * 重新计算行号
     * @param tblId
     */
    function refreshRowINdex33(tblId){
        //重新计算行号
        $("#"+tblId+" tr").each(function(){
                var seq=$(this).get(0).rowIndex;//获得行数
                if(seq>1){//如果有行  显示时display行不计入类，故只减1
                    seq=seq-1;
                    var seq_no=$(this).find("[name$='seq_no']");
                    if(seq_no.is("span"))
                        seq_no.html(seq);
                    else
                        seq_no.val(seq);

                    seq=""+(seq-1);
                    if(seq.length==1)
                        seq="0"+seq;
                    //替换相应的name参数的seq
                    $(this).find("input,span,textarea,select").each(function(){
                        var name=$(this).attr("name");
                        if(name!=null&&name!=""){
                            name=name.replace(/\[\d*\]/g,"["+seq+"]");
                            $(this).attr("name",name);
                        }
                        var id=$(this).attr("id");
                        if(id!=null&&id!=""){
                            id=id.replace(/\[\d*\]/g,"["+seq+"]");
                            $(this).attr("id",id);
                            id=id.replace(/\d+/g,""+seq+"");
                            $(this).attr("id",id);
                        }
                        var className=$(this).attr("class");
                        if(className!=null&&className!=""){
                            className=className.replace(/\[\d*\]/g,"["+seq+"]");
                            $(this).attr("class",className);
                        }
                    });
                }
            }
        );

    }


    /**
     * 删除一行
     * @param radioId
     */
    function deleteSelectedRow3(tableId,message,nummin,warnMsg,selName){
        if(!selName)selName="";
        var tr=$("#"+tableId+" :radio[name*='"+selName+"']:checked").parents("tr");
        if(nummin==null)
            nummin=0;
        var length=tr.length;
        if(tr.length==0)
            tr=$("#"+tableId+" tr").filter(":last");
        else if(tr.length>1)
            tr=tr.first();

        if(tr.get(0).rowIndex-1==nummin){
            scmWarn(irisNotes.delWarn1);
            return false;
        }
        if(length==0){

            scmWarn(irisNotes.delWarn2);

            return false;
        }
        if(!confirm(messageTip.deleteTip+message+"？"))
            return false;
        tr.remove();
        refreshRowINdex33(tableId);
        return true;
        setSubmitOrg() ;
    }
    //下拉选择赋值
    function initTreeValueExt(treeId, treeNode) {
        if ((treeNode && treeNode.isParent)) {
            scmWarn("请选择具体的" + $("#" + treeId).attr("label"));
            $("#" + treeId).val("");
            $("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val("");
            $("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId	+ "_value']").val("");
            $("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val("");
            return false;
        }
        var str = treeNode.name;
        var obj = treeNode.parentNode;
        while (obj != null) {
            str = obj.name + "-" + str;
            obj = obj.parentNode;
        }

        $("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val(treeNode.id);
        $("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
        $("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);
    }

    // function countkc() {
    //     var researcher = $("#jc_researcher").val();
    //     var achievement = $("#jc_achievement").val();
    //     var immobilization_people = $("#jc_immobilization_people").val();
    //     if (researcher != "") {
    //         if (achievement != "") {
    //             $("#jc_people_sum").val(parseInt($("#jc_researcher").val()) + parseInt($("#jc_achievement").val()));
    //             if (immobilization_people != ""){
    //                let coun = formatNumber(((parseFloat($("#jc_people_sum").val()) / parseFloat($("#jc_immobilization_people").val()))*100).toString(), 9, 4, 2);
    //                 $("#jc_proportion").val(coun);
    //             }else {
    //                 $("#jc_proportion").val("");
    //             }
    //         } else {
    //             $("#jc_people_sum").val(parseFloat($("#jc_researcher").val()));
    //             if (immobilization_people != ""){
    //                 let coun = formatNumber(((parseFloat($("#jc_people_sum").val()) / parseFloat($("#jc_immobilization_people").val()))*100).toString(), 9, 4, 2);
    //                 $("#jc_proportion").val(coun);
    //             }else {
    //                 $("#jc_proportion").val("");
    //             }
    //         }
    //     } else {
    //         if (achievement != "") {
    //             $("#jc_people_sum").val(parseFloat($("#jc_achievement").val()));
    //             if (immobilization_people != ""){
    //                 var jc_people_sum=Number($("#jc_people_sum").val());
    //                 var jc_immobilization_people=Number($("#jc_immobilization_people").val());
    //                 var avg_people=Number(parseFloat(jc_people_sum))/Number(parseFloat(jc_immobilization_people))*100;
    //                 let coun = formatNumber(avg_people, 9, 4, 2);
    //                 $("#jc_proportion").val(coun);
    //             }else {
    //                 $("#jc_proportion").val("");
    //             }
    //         } else {
    //             $("#jc_people_sum").val("");
    //             if (immobilization_people != ""){
    //                 $("#jc_proportion").val("0.00");
    //             }else {
    //                 $("#jc_proportion").val("");
    //             }
    //         }
    //     }
    // }
</script>

